package com.tp;

import com.tp.bean.Test;
import org.coody.framework.core.CoreApp;
import org.coody.framework.core.build.ConfigBuilder;
import org.coody.framework.core.config.CoodyConfig;
import org.coody.framework.core.container.BeanContainer;

/**
 * @author liutp
 * @date 2019/5/5 16:11
 * @description Main:
 */
public class Main {

    public static void main(String[] args) throws Exception {

        try {
            String config ="";
            ConfigBuilder.builder(config);
            //载入框架配置
            CoodyConfig coodyConfig=new CoodyConfig();
            coodyConfig.init();
            //框架启动
            CoreApp.init(coodyConfig);
        } catch (Exception e) {
            e.printStackTrace();
        }

        Test test = BeanContainer.getBean("test");

        Test test1 = new Test();


        test.testAspect();
    }

}
